package com.hilinos.base.user.entity.pojo;

import java.io.Serializable;
import java.util.Date;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * @author hilinos
 * @since 2022-03-08
 */
@Builder
@AllArgsConstructor
@NoArgsConstructor
@Data
@ApiModel("用户基础信息表")
@TableName("user_info")
public class UserInfoPoJo implements Cloneable, Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty("用户id")
    @TableField("user_id")
    private String userId;
    @ApiModelProperty("用户id")
    @TableField("appid")
    private String appid;
    @ApiModelProperty("机构ID")
    @TableField("org_id")
    private String orgId;
    @ApiModelProperty("部门ID")
    @TableField("dept_id")
    private String deptId;
    @ApiModelProperty("显示名称")
    @TableField("user_display_name")
    private String userDisplayName;
    @ApiModelProperty("手机号")
    @TableField("user_mobile")
    private String userMobile;
    @ApiModelProperty("用户类型;")
    @TableField("user_type")
    private String userType;
    @ApiModelProperty("用户类型名称;管理员、普通用户等")
    @TableField("user_type_name")
    private String userTypeName;
    @ApiModelProperty("创建人")
    private Long creator;
    @ApiModelProperty("创建人类型")
    @TableField("creator_type")
    private String creatorType;
    @ApiModelProperty("创建时间")
    @TableField("creator_time")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date creatorTime;
    @ApiModelProperty("更新人")
    private Long updator;
    @ApiModelProperty("更新人类型")
    @TableField("updator_type")
    private String updatorType;
    @ApiModelProperty("更新时间")
    @TableField("updator_time")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date updatorTime;

}